package com.hp.modules.sys.entity;

import com.hp.common.base.YesNoEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author:mcfan
 * @description:岗位-实体类
 * @date: create in 9:21 2021/4/8
 */
@Table(name = "sys_post")
@ApiModel(description = "岗位")
public class SysPost implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -1L;
    @Id
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "岗位名称")
    private String name;
    @ApiModelProperty(value = "岗位编号")
    private String code;
    @ApiModelProperty(value = "排序")
    private Double sort;
    @ApiModelProperty(value = "是否启用(1->禁用|NO,2->启用|YES)")
    private YesNoEnum isEnabled;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "是否删除(1->未删除|NO,2->已删除|YES)")
    @LogicDelete(isDeletedValue=YesNoEnum.Y,notDeletedValue=YesNoEnum.N)
    private YesNoEnum isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getSort() {
        return sort;
    }

    public void setSort(Double sort) {
        this.sort = sort;
    }

    public YesNoEnum getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(YesNoEnum isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public YesNoEnum getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(YesNoEnum isDeleted) {
        this.isDeleted = isDeleted;
    }
}
